﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Xml;
using VersionComparer.Images;
using VersionComparer.Base;

namespace VersionComparer.DataModel.Xml
{
    public class XmlCDataItem : XmlTextItem
    {
        public XmlCDataItem()
        {
        }
        public XmlCDataItem(ComparableItem parent, XmlNode node)
            : base(parent, node)
        {
        }


        protected override void BuildRtf(Base.RtfBuilder builder, bool differencesOnly, bool useParentColor)
        {
            builder.Append("<![CDATA[", Color.Blue);
            builder.Append(XmlNode.InnerText, Color.Black);
            builder.Append("]]>", Color.Blue);
        }
       
    }
}
